<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}{% endblock %}</title>

    {% load static %}
    <link rel="stylesheet" href="{% static "plugin/bootstrap-3.4.1-dist/css/bootstrap.min.css" %}">
    <link rel="stylesheet" href="{% static "plugin/font-awesome-4.7.0/css/font-awesome.min.css" %}">
    <link rel="stylesheet" href="{% static "plugin/bootstrap-sweetalert-master/dist/sweetalert.css" %}">

    <style>
        .navbar-default {
            border-radius: 0;
        }
    </style>
    {% block css %}{% endblock %}
</head>
<body>
<nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{% url 'index' %}">大屏数字人平台</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-left">
                    <li><a href="#">控屏</a></li>
                    <li><a href="{% url 'chit:caselist' %}">闲聊</a></li>
                    <li><a href="{% url 'analy:basecase' %}">数据分析</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right" role="presentation">
                    <li><a href="#">工作台</a></li>
                    <li><a href="#">日 历</a></li>
                    <li><a href="#"><i class="fa fa-bookmark" aria-hidden="true"></i></a></li>
                    <li><a href="#"><i class="fa fa-bell-o" aria-hidden="true"></i></a></li>
                    {% if request.tracer %}
{#                        <li><a href="#">{{ request.tracer.username }}</a></li>#}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                               aria-expanded="false">{{ request.tracer.username }} <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li><a href="{% url 'index' %}">管 理</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="{% url 'user:logout' %}">logout</a></li>
                            </ul>
                        </li>
                    {% else %}
                        <li><a href="{% url 'user:user_login' %}">注册</a></li>
                        <li><a href="{% url 'user:user_login' %}">登录</a></li>
                    {% endif %}
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
{% block content %}{% endblock %}

<script src="{% static 'js/jquery-3.4.1.js' %}"></script>
<script src="{% static 'plugin/bootstrap-3.4.1-dist/js/bootstrap.min.js' %}"></script>
<script src="{% static 'plugin/bootstrap-sweetalert-master/dist/sweetalert.min.js' %}"></script>
{% block js %}{% endblock %}
</body>
</html>